//
//  MHWaterFlowLayoutCell.m
//  ManHua
//
//  Created by 赵永泉 on 15/10/27.
//  Copyright © 2015年 蓝欧科技. All rights reserved.
//

#import "MHWaterFlowLayoutCell.h"
#import <UIImageView+WebCache.h>

@interface MHWaterFlowLayoutCell ()
@property (strong, nonatomic) UIImageView *picture;

@end

@implementation MHWaterFlowLayoutCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.picture = [[UIImageView alloc]init];
        [self.contentView addSubview:self.picture];
    }
    return self;
}

- (void)setComicIntroct:(MHComicIntroduct *)comicIntroct
{
    _comicIntroct = comicIntroct;
    [self.picture sd_setImageWithURL:[NSURL URLWithString:comicIntroct.BookIconOtherURL]];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.picture.frame = self.bounds;
}

@end
